package com.example.tass.licence;

import java.io.Serializable;
import java.util.Date;


public class LicenceContent implements Serializable {
    /**
     * licence的提供者
     */
    private String vendor;

    /**
     * licence的使用者
     */
    private String user;

    /**
     * 使用者所在组织
     */
    private String organization;

    /**
     * licence生成时间
     */
    private Date issuedTime;

    /**
     * Licence生效时间
     */
    private Date notBeforeTime;

    /**
     * Licence失效时间
     */
    private Date notAfterTime;

    /**
     * 允许的IP地址
     */
    private String allowIp;

    /**
     * Licence签名信息
     */
    private String sign;

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public Date getIssuedTime() {
        return issuedTime;
    }

    public void setIssuedTime(Date issuedTime) {
        this.issuedTime = issuedTime;
    }

    public Date getNotBeforeTime() {
        return notBeforeTime;
    }

    public void setNotBeforeTime(Date notBeforeTime) {
        this.notBeforeTime = notBeforeTime;
    }

    public Date getNotAfterTime() {
        return notAfterTime;
    }

    public void setNotAfterTime(Date notAfterTime) {
        this.notAfterTime = notAfterTime;
    }

    public String getAllowIp() {
        return allowIp;
    }

    public void setAllowIp(String allowIp) {
        this.allowIp = allowIp;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "LicenceContent{" +
                "vendor='" + vendor + '\'' +
                ", user='" + user + '\'' +
                ", organization='" + organization + '\'' +
                ", issuedTime=" + issuedTime +
                ", notBeforeTime=" + notBeforeTime +
                ", notAfterTime=" + notAfterTime +
                ", allowIp='" + allowIp + '\'' +
                ", sign='" + sign + '\'' +
                '}';
    }
}
